package KI;

import generated.MoveMessageType;

public class MoveMessage extends MoveMessageType {
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((newPinPos == null) ? 0 : newPinPos.hashCode());
		result = prime * result
				+ ((shiftCard == null) ? 0 : shiftCard.hashCode());
		result = prime * result
				+ ((shiftPosition == null) ? 0 : shiftPosition.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MoveMessage other = (MoveMessage) obj;
		if (newPinPos == null) {
			if (other.newPinPos != null)
				return false;
		} else if (!newPinPos.equals(other.newPinPos))
			return false;
		if (shiftCard == null) {
			if (other.shiftCard != null)
				return false;
		} else if (!shiftCard.equals(other.shiftCard))
			return false;
		if (shiftPosition == null) {
			if (other.shiftPosition != null)
				return false;
		} else if (!shiftPosition.equals(other.shiftPosition))
			return false;
		return true;
	}
    
    

	
}
